package com.freight.core.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.freight.core.base.FreightBaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import javax.persistence.Entity;
import javax.persistence.Table;


@Data
@Entity
@DynamicInsert
@DynamicUpdate
@Table(name = "operation_log")
@TableName("operation_log")
@ApiModel(value = "操作日志")
public class OperationLog extends FreightBaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "日志类型 1货主 2驾驶员 4车辆 5货源 6运单 10账户管理")
    private Integer logType;

    @ApiModelProperty(value = "操作名称")
    private String name;

    @ApiModelProperty(value = "请求用户手机号")
    private String userName;

    @ApiModelProperty(value = "姓名")
    private String nickName;

    @ApiModelProperty(value = "请求用户id")
    private Long userId;

    @ApiModelProperty(value = "操作数据id")
    private String operationData;

    @ApiModelProperty(value = "ip")
    private String ip;

}
